package com.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloWorldController {
	@RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("title", "Hello Spring MVC");
        model.addAttribute("message", "终于要可以了吗？？");
        return"helloworld";
         
    }
}
